package src.messagesToServer;

import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This class is a command to the server to remove the object associated with the ID
 * @author John Stewart
 */
public class RemoveData extends MessageToServer {
	private int dataid;

	public RemoveData(int newdataid) {
		dataid = newdataid;
	}

	@Override
	public MessageToClient execute(String address, Control control) {
		return control.removeData(address, dataid);
	}

}
